package com.pig4cloud.pigx.common.customize.contants;

import java.util.regex.Pattern;

/**
 * 正则表达式
 *
 * @since 2022/11/3 13:56
 */
public interface RegexConstants {
	/**
	 * ip地址
	 */
	Pattern IP = Pattern.compile("((2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){3}(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)");
	/**
	 * 正整数
	 */
	Pattern POSITIVE_INTEGER_GT0 = Pattern.compile("^[1-9]\\d*$");
}
